from PyQt5 import QtWidgets


class ExcelWidget(QtWidgets.QTableWidget):
    def __init__(self, parent=None):
        super(ExcelWidget, self).__init__()
        self.parent = parent
        self.search_text = None
        self.search_pos = 0
        self.initUI()

    def initUI(self):
        self.setRowCount(100)
        self.setColumnCount(5)
        self.setHorizontalHeaderLabels(["网址", "关键词", "操作", "状态", "保存路径"])
        self.setSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)